<?php

class PageController extends AController
{
	// ------------------------------------------------------------------------------------

	public $title = '';

	// ------------------------------------------------------------------------------------
	/**
	 * @return void
	 */
	public function actionIndex($page_name = NULL)
	{
		$this->redirect('/#w:' . $page_name);
		return;

		$Page = PagesLib::i()->getPage($page_name);
		if(!empty($Page))
		{
			$this->title = $Page->page_title;

			$this->render('index', array(
				'page' => $Page
			));
			return true;
		}

		throw new CHttpException(404);
	}

	// ------------------------------------------------------------------------------------
}